﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using E;

namespace HCFramework.Master.Normal.Menu
{
    public partial class UsrLanguage : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //switch (C.LanguageController.GetLanguageCurrent())
                //{
                //    case "VN":
                //        btnVN.Visible = false;
                //        btnEN.Visible = true;
                //        break;
                //    case "EN":
                //        btnVN.Visible = true;
                //        btnEN.Visible = false;
                //        break;
                //}
            }
        }

        protected void btnEN_Click(object sender, ImageClickEventArgs e)
        {
            C.LanguageController.SetLanguageCurrent("EN");
            Response.Redirect(Request.Url.AbsoluteUri);
        }

        protected void btnVN_Click(object sender, ImageClickEventArgs e)
        {
            C.LanguageController.SetLanguageCurrent("VN");
            Response.Redirect(Request.Url.AbsoluteUri);
        }
    }
}